import { CategoryCreateDto, CategoryListDto, CategorySingleDto, CategoryUpdateDto } from '../dtos/category.dto';
import CategoryModel from '../models/category.model';
import { PageRequest } from '../types';
import { BaseService } from './.service';

/**
 * 分类服务类
 */
export class CategoryService extends BaseService<CategoryModel, CategoryListDto, CategorySingleDto, CategoryCreateDto, CategoryUpdateDto> {
  constructor() {
    super(CategoryModel, new CategorySingleDto(), new CategoryListDto());
  }
}

/**
 * 分类服务实例
 */
export const categoryService = new CategoryService();
